package com.zsrt.java.day20161229.cg.demo05;

/**
 * Studnet04 子类
 * Person04	 父类
 * 
 * 子类会继承父类public的方法
 * @author Administrator
 *
 */
public class Student05 extends Person05{
	
	public Student05() {
		super();
	}

	public Student05(String name, int age, String school) {
		super(name, age);
		this.school = school;
	}

	private String school;

	public String getSchool() {
		return school;
	}

	public void setSchool(String school) {
		this.school = school;
	}

	@Override
	public String toString() {
		return "Student04 [school=" + school + ", name=" + super.getName() + ", age=" + super.getAge()+ "]";
	}
	
}
